package com.tms.operation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tms.operation.mapper.TmsReceiptMapper;
import com.tms.operation.domain.TmsReceipt;
import com.tms.operation.service.ITmsReceiptService;

/**
 * 签收单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class TmsReceiptServiceImpl implements ITmsReceiptService 
{
    @Autowired
    private TmsReceiptMapper tmsReceiptMapper;

    /**
     * 查询签收单
     * 
     * @param id 签收单主键
     * @return 签收单
     */
    @Override
    public TmsReceipt selectTmsReceiptById(Long id)
    {
        return tmsReceiptMapper.selectTmsReceiptById(id);
    }

    /**
     * 查询签收单列表
     * 
     * @param tmsReceipt 签收单
     * @return 签收单
     */
    @Override
    public List<TmsReceipt> selectTmsReceiptList(TmsReceipt tmsReceipt)
    {
        return tmsReceiptMapper.selectTmsReceiptList(tmsReceipt);
    }

    /**
     * 新增签收单
     * 
     * @param tmsReceipt 签收单
     * @return 结果
     */
    @Override
    public int insertTmsReceipt(TmsReceipt tmsReceipt)
    {
        return tmsReceiptMapper.insertTmsReceipt(tmsReceipt);
    }

    /**
     * 修改签收单
     * 
     * @param tmsReceipt 签收单
     * @return 结果
     */
    @Override
    public int updateTmsReceipt(TmsReceipt tmsReceipt)
    {
        return tmsReceiptMapper.updateTmsReceipt(tmsReceipt);
    }

    /**
     * 批量删除签收单
     * 
     * @param ids 需要删除的签收单主键
     * @return 结果
     */
    @Override
    public int deleteTmsReceiptByIds(Long[] ids)
    {
        return tmsReceiptMapper.deleteTmsReceiptByIds(ids);
    }

    /**
     * 删除签收单信息
     * 
     * @param id 签收单主键
     * @return 结果
     */
    @Override
    public int deleteTmsReceiptById(Long id)
    {
        return tmsReceiptMapper.deleteTmsReceiptById(id);
    }
}
